package com.systop.busafter.banner.service.impl;
import com.systop.busafter.banner.mapper.BannerMapper;
import com.systop.busafter.banner.service.BannerService;
import com.systop.commer.pojo.Banner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class BannerServiceImpl implements BannerService {

    @Autowired
    private BannerMapper bannerMapper;

    @Override
    public int updatabannerid(Banner banner) {
        return bannerMapper.updatabannerid(banner);
    }

    @Override
    public int insertbanner(Banner banner) {
        return bannerMapper.insertbanner(banner);
    }

    @Override
    public List<Banner> bannerListall() {
        return bannerMapper. bannerListall();
    }

    @Override
    public List<Banner> bannerIdlist(int banner_id) {
        return bannerMapper.bannerIdlist( banner_id);
    }

    @Override
    public Banner BannerId(int banner_id) {
        return bannerMapper.BannerId( banner_id);
    }

    @Override
    public int deletebannerId(int banner_id) {
        return bannerMapper.deletebannerId( banner_id);
    }
}
